package cn.yougou.pojo;

import java.util.Date;
import java.io.Serializable;
/**
 * (YgOrder)实体类
 *
 * @author 韩帅锋
 * @since 2020-12-09 14:16:02
 */
public class YgOrder implements Serializable {
    private static final long serialVersionUID = 192087377063299983L;

//  创建商品表的实体类对象
    private YgCommodity ygCommodity;

    public YgCommodity getYgCommodity() {
        return ygCommodity;
    }

    public void setYgCommodity(YgCommodity ygCommodity) {
        this.ygCommodity = ygCommodity;
    }

    private Integer id;
    /**
     * 用户id
     */
    private Integer userid;
    /**
     * 用户手机号
     */
    private String phone;
    /**
     * 用户地址
     */
    private String address;
    /**
     * 订单留言
     */
    private String message;
    /**
     * 订单编号
     */
    private String ordersn;
    /**
     * 订单状态(1:代付款:,2:待收货,3:待评价,4:售后)
     */
    private Integer orderstatus;
    /**
     * 商品总价格10位数,2位小数
     */
    private Double goodsprice;
    /**
     * 配送费用
     */
    private Double freightprice;
    /**
     * 优惠卷减免
     */
    private Double couponprice;
    /**
     * 用户积分减免
     */
    private Double grouponprice;
    /**
     * 实付费用
     */
    private Double actualprice;
    /**
     * 创建时间
     */
    private Date createdate;
    /**
     * 更新时间
     */
    private Date updatetime;
    /**
     * 商品ID
     */
    private Integer commodityid;
    /**
     * 商品数量
     */
    private Integer purchseq;

    /**
     * 商品型号
     */
    private String purchsetype;
    /**
     * 商品介绍
     */
    private String purchseintroduce;

    /**
     * 订单评价（绑定评价表的id）
     */
    private Integer  commentid;

    /**
     * 规格id
     * */
    private Integer productid;
    /**
     * 逻辑删除
     * */
    private Boolean deleted;

    /**
     * couponsId 优惠券id
     * **/
    private Integer couponsId;
    public YgOrder(){

    }
    public YgOrder(Integer userid,String phone,String address,String message,String ordersn,Integer orderstatus,Double actualprice, Double freightprice,Double grouponprice, Date createdate,Date updatetime,Integer  commentid,Integer commodityid,Integer purchseq,String purchsetype,Integer productid,Double goodsprice){
        this.userid=userid;//用户id
        this.phone=phone;//用户手机号
        this.address=address;//用户地址
        this.message=message;//订单留言
        this.ordersn=ordersn;//订单编号
        this.orderstatus=orderstatus;//订单状态(1:代付款:,2:待收货,3:待评价,4:售后)
        this.actualprice=actualprice;//实付费用
        this.freightprice=freightprice;//配送费用
        this.grouponprice=grouponprice;//用户积分减免
        this.createdate=createdate;//创建时间
        this.updatetime=updatetime;//更新时间
        this.commentid=commentid;//订单评价（绑定评价表的id）
        this.commodityid=commodityid;//商品ID
        this.purchseq=purchseq;//商品数量
        this.purchsetype=purchsetype;//商品型号
        this.productid=productid;
        this.goodsprice=goodsprice;
    }

    public YgOrder(Integer orderstatus) {
        this.orderstatus = orderstatus;
    }

    public YgOrder(Integer id, Integer userid, String phone, String address, String message, String ordersn, Integer orderstatus, Double goodsprice, Double freightprice, Double couponprice, Double grouponprice, Double actualprice, Date createdate, Date updatetime, Integer commodityid, Integer purchseq, String purchsetype, String purchseintroduce) {
        this.id = id;
        this.userid = userid;
        this.phone = phone;
        this.address = address;
        this.message = message;
        this.ordersn = ordersn;
        this.orderstatus = orderstatus;
        this.goodsprice = goodsprice;
        this.freightprice = freightprice;
        this.couponprice = couponprice;
        this.grouponprice = grouponprice;
        this.actualprice = actualprice;
        this.createdate = createdate;
        this.updatetime = updatetime;
        this.commodityid = commodityid;
        this.purchseq = purchseq;
        this.purchsetype = purchsetype;
        this.purchseintroduce = purchseintroduce;
    }

    public Integer getProductid() {
        return productid;
    }

    public void setProductid(Integer productid) {
        this.productid = productid;
    }

    public Integer getCouponsId() {
        return couponsId;
    }

    public void setCouponsId(Integer couponsId) {
        this.couponsId = couponsId;
    }

    public Integer getCommodityid() {
        return commodityid;
    }

    public void setCommodityid(Integer commodityid) {
        this.commodityid = commodityid;
    }

    public Integer getCommentid() {
        return commentid;
    }

    public void setCommentid(Integer commentid) {
        this.commentid = commentid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getOrdersn() {
        return ordersn;
    }

    public void setOrdersn(String ordersn) {
        this.ordersn = ordersn;
    }

    public Integer getOrderstatus() {
        return orderstatus;
    }

    public void setOrderstatus(Integer orderstatus) {
        this.orderstatus = orderstatus;
    }

    public Double getGoodsprice() {
        return goodsprice;
    }

    public void setGoodsprice(Double goodsprice) {
        this.goodsprice = goodsprice;
    }

    public Double getFreightprice() {
        return freightprice;
    }

    public void setFreightprice(Double freightprice) {
        this.freightprice = freightprice;
    }

    public Double getCouponprice() {
        return couponprice;
    }

    public void setCouponprice(Double couponprice) {
        this.couponprice = couponprice;
    }

    public Double getGrouponprice() {
        return grouponprice;
    }

    public void setGrouponprice(Double grouponprice) {
        this.grouponprice = grouponprice;
    }

    public Double getActualprice() {
        return actualprice;
    }

    public void setActualprice(Double actualprice) {
        this.actualprice = actualprice;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }


    public Integer getPurchseq() {
        return purchseq;
    }

    public void setPurchseq(Integer purchseq) {
        this.purchseq = purchseq;
    }

    public String getPurchsetype() {
        return purchsetype;
    }

    public void setPurchsetype(String purchsetype) {
        this.purchsetype = purchsetype;
    }

    public String getPurchseintroduce() {
        return purchseintroduce;
    }

    public void setPurchseintroduce(String purchseintroduce) {
        this.purchseintroduce = purchseintroduce;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }



    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        return "YgOrder{" +
                "ygCommodity=" + ygCommodity +
                ", id=" + id +
                ", userid=" + userid +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", message='" + message + '\'' +
                ", ordersn='" + ordersn + '\'' +
                ", orderstatus=" + orderstatus +
                ", goodsprice=" + goodsprice +
                ", freightprice=" + freightprice +
                ", couponprice=" + couponprice +
                ", grouponprice=" + grouponprice +
                ", actualprice=" + actualprice +
                ", createdate=" + createdate +
                ", updatetime=" + updatetime +
                ", commodityid=" + commodityid +
                ", purchseq=" + purchseq +
                ", purchsetype='" + purchsetype + '\'' +
                ", purchseintroduce='" + purchseintroduce + '\'' +
                ", commentid=" + commentid +
                ", productid=" + productid +
                ", deleted=" + deleted +
                ", couponsId=" + couponsId +
                '}';
    }
}